//  员工类型接口
export interface Employee {
    userId: string;
    username: string;
    userType: string;
    phone: string;
    realName: string;
}

//定义Api
import axios from "@/API/axios/axios"
// 获取所有用户
export const getAllUsers = () => {
    return axios.get('/user/getAllUsers');
}
// 更新用户信息Api
export const updateUserApi = (user: Employee) => {
    return axios.post('/user/updateUser', user);
}
// 删除用户
export const deleteUserApi = (userId: string) => {
    return axios.delete('/user/deleteUser', { params: { userId } });
}